package com.mikeli.javacourse.lesson5;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Component;

@Conditional(StudentCondition.class)
@Component
@ToString
@Data
public class Student {
    String name;
    @Value("${student.age}")
    String age;

}
